<?php

function menu($typeid){
	$menu_db = M('menu');										//获取栏目名称
		$menu = $menu_db -> select();
		$this -> assign('menu',$menu);
		foreach($menu as $val){
			if($val['id'] == $typeid){
				$menu2 = $val;
			}
		}
	return $meun2;
}

	/*
	session_start();
	//dump($_SESSION['file']);
	//$filesession = htmlspecialchars_decode(I('session.file'));
	$filesession = $_SESSION['file'];
	//$f = json_decode(filesession);
	dump($filesession);
	//echo "<br/>buzhidao ";
	//print_r($f);
	
	*/
	